package com.ma.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface RedisLock {
    String prefixKey();
    String key() default "";
    int waitTime() default -1;
    TimeUnit unit() default TimeUnit.MILLISECONDS;
}
